home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
MATHS
/
RLAB
/
RLAB125.ZIP
/
!RLaB
/
misc
/
MAC
/
config.h
next >
Wrap
C/C++ Source or Header
|
1994-06-26
|
4KB
|
184 lines
/* RLaB system configuration header file. */
/* MAC-RLaB config.h, 6/19/94 */
/* tsyang@ce.berkeley.edu */
/*
* This configuration file contains all the "defines" that
* are necessary to compile rlab. If this file, as generated
* by configure, does not work, then either "define" or "undef"
* symbols to generate a working config.h. Please send any
* changes to ians@eskimo.com, or rlab-list@eskimo.com.
*/
#ifndef _CONFIG_H_
#define _CONFIG_H_
#undef HAVE_PIPE
/* Machine defines, only the real morphidites go here */
#undef TITAN
/*
* Does the C compiler support const ?
* If it doesn't then:
* #define const
*/
#undef const
/* Standard C (ANSI) header files */
#define STDC_HEADERS
/* Does this system have stdlib.h */
#define HAVE_STDLIB_H
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#else
#include <malloc.h>
#endif
/* Does this system have unistd.h (for chdir()) */
#define HAVE_UNISTD_H
#define HAVE_TIME_H
/* Set ANSI compiler features */
#if __STDC__ || TITAN
#define _PROTO(proto) proto
typedef void *VPTR;
#undef YY_USE_PROTOS
#else
#define _PROTO(proto) ()
#undef YY_USE_PROTOS
typedef char *VPTR;
#endif /* __STDC__ */
/*
* If this system does not have a size_t type,
* then use unsigned int. Else, include the file
* that defines size_t.
*/
#undef size_t
#ifndef size_t
#include <sys/types.h>
#else
typedef unsigned int size_t;
#endif
/*
* #define HAVE_READLINE 1
* If you want readline command editing.
* Also edit the Makefile to add the location
* and name of the readline library.
*/
#undef HAVE_READLINE
#define HAVE_INPUT_EDIT 1
/*
* #define HAVE_RLAB_PLPLOT
* If you have the PLPLOT library and
* you wish to use this for plotting data.
* Also edit the Makefile to add the location
* and name of the PLPLOT library, and any other
* support libraries it may need.
*/
#define HAVE_RLAB_PLPLOT
/* Does this system have dirent.h ? */
#define DIRENT
#ifdef DIRENT
#define HAVE_DIRENT
#else
#undef HAVE_DIRENT
#endif
/* If your system has an index(3), and rindex(3) */
#undef HAVE_RINDEX
/* If your math library has rint() */
#undef HAVE_RINT
#undef HAVE_RINT_DEC
#ifdef HAVE_RINT
#ifndef HAVE_RINT_DEC
extern double rint();
#endif
#endif
/* If your system has a difftime() function */
#define HAVE_DIFFTIME
/* This defines the byte significance of your machine */
#define WORDS_BIGENDIAN
/*
* If your system does not have a float.h, then try building,
* and running misc/enquire.c. Enquire will generate a suitable
* float.h. If you don't have, or can't build a float.h, then you
* will need to define DBL_EPSILON.
*/
#define HAVE_FLOAT_H
#ifndef HAVE_FLOAT_H
#define DBL_EPSILON 2.22e-16
#else
#include <float.h>
#endif
/*
* The width of your terminal. This will be replaced later on.
*/
#define TERM_WIDTH 72
/*
* Next you need to tell us which floating point exceptions
* you want to trap. If you don't know what to do here, then do:
* `#define FP_SET_MASK ;' Then the defaults will be left alone.
*/
#undef HAVE_FPSETMASK
#undef HAVE_IEEEFP_H
#ifdef HAVE_FPSETMASK
#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif
#define FP_SET_MASK { int mask=fpgetmask();\
fpsetmask(mask | FP_X_DZ | FP_X_OFL); }
#else
#define FP_SET_MASK ;
#endif
/*
* The following tells RLaB how to handle math library errors.
* `#undef USE_MATHERR'
* `#define errcheck( a , b ) errno_check( a , b )'
* will tell RLaB to check errno after every call to math library
* functions. This method should work on any UNIX platform.
*
* `#define USE_MATHERR'
* `#define errcheck( a , b ) a'
* will tell RLaB to use matherr(). This is more efficient, since
* matherr() is only called when an exception occurs. However
* matherr() may not be available on BSD-style systems.
*/
#define HAVE_MATHERR
#ifdef HAVE_MATHERR
#define errcheck( a , b ) a
#else
#define errcheck( a , b ) errno_check( a , b )
#endif
/*
* Misc defines for systems without declarations
* in their header files (SUN).
*/
#define HAVE_FPRINTF_DEC
#define HAVE_SPRINTF_DEC
#endif /* _CONFIG_H_ */